package com.tb.tbv1productservice.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.tb.v1.api.shoop.ISpManagerService;
import com.tb.v1.common.base.BaseServiceImpl;
import com.tb.v1.common.base.IBaseDao;
import com.tb.v1.entity.SpManager;
import com.tb.v1.mapper.SpManagerMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author: tangBin
 * @Date: 2020/7/14 0014 17:27
 * @Description:
 */
@Service
public class SpManagerService extends BaseServiceImpl<SpManager> implements ISpManagerService {

    @Autowired
    private SpManagerMapper spManagerMapper;

    @Override
    public IBaseDao<SpManager> getBaseDao() {
        return spManagerMapper;
    }

    @Override
    public SpManager getManager(Map map) {
        return spManagerMapper.getManager(map);
    }

    @Override
    public List<Map> getManagerList(Map map) {
        return spManagerMapper.getManagerList(map);
    }

    @Override
    public Long getManagerListTotal(Map map) {
        return spManagerMapper.getManagerListTotal(map);
    }
}
